@use '@/assets/styles/variables.scss';
@use '@/assets/styles/mixin.scss';

/***** 高级 *****/
.lc-detail {
  @include mixin.createCssFromOutsideBasicStyles('&');
  .lc-label {
    width: var(--form-input-width, 240px);
    border-bottom: 1px solid #cccccc;
    line-height: 1.5;
    padding-top: 5px;
  }
  .el-form-item__content {
    label,
    .lc-label {
      display: inline-block;
      width: var(--form-input-width, 240px);
      border-bottom: 1px solid #c0c0c0;
      text-overflow: ellipsis;
      white-space: nowrap;
      overflow: hidden;
    }
  }
  & .lc-detail__adaptive-self {
    & > .el-form {
      display: inline-block;
      &.lc-editor__form {
        min-width: 50%;
      }
      .el-form-item + .el-form-item {
        margin-left: var(--formItemSpace);
      }
    }
  }
  .lc-detail__position-left {
    text-align: left;
  }
  .lc-detail__position-center {
    text-align: center;
  }
  .lc-detail__position-right {
    text-align: right;
  }
}

.lc-input-identity-card {
  width: 100%;
  @include mixin.createCssFromStyles('&,& .el-input__wrapper');
  @include mixin.createCssByAttributes('& .el-input__inner', 'color');
}

.lc-input-money {
  width: 100%;
  &__uppercase {
    margin: 10px;
  }
  &[size='compact'] {
    .el-input__inner {
      padding: 0 5px;
    }
    .el-input-group__append {
      padding: 0;
    }
  }
  @include mixin.createCssFromStyles('&,& .el-input .el-input__wrapper');
  @include mixin.createCssByAttributeMaps('& .el-input__inner', variables.$common-style-maps);
}

.lc-list-view {
  & {
    padding: 10px;
  }
  @include mixin.createCssFromOutsideBasicStyles('&');
  
  &__title {
    margin-bottom: variables.$mainSpace;
  }
  &__toolbar {
    margin: variables.$secondarySpace 0;
    &-tools {
      & > *[class*='lc'] + *[class*='lc'] {
        margin-left: variables.$mainSpace;
      }
    }
  }
}

.lc-magnifier {
  &-dialog-text {
    font-size: 32px;
  }
  @include mixin.createCssFromOutsideBasicStyles('&');
}

.lc-select-tree-list {
  @include mixin.createCssFromStyles('&');
}

.lc-list-view2 {
  .el-button.lc-button {
    min-width: unset;
  }
  .el-button + .el-button {
    margin-left: 14px;
  }
  .lc-list-filter {
    padding: 16px;
    margin-bottom: 12px;
    background: rgb(255, 255, 255);
    border: 1px solid rgb(232, 236, 239);
    border-radius: 5px;
    &__row {
      flex-direction: column;
      .lc-form-item {
        flex-basis: 33.3%;
      }
      .lc-form-item + .lc-form-item {
        margin-left: 0;
      }
    }
  }
  .lc-list-view2-body {
    padding: 16px;
    background: rgb(255, 255, 255);
    border: 1px solid rgb(232, 236, 239);
    border-radius: 5px;
    .lc-list-view__toolbar {
      padding-bottom: 16px;
      margin: 0px;
    }
    .lc-table {
      .el-table__body-wrapper {
        cursor: pointer;
      }
    }
    .lc-pagination {
      padding-top: 16px;
      padding-bottom: 0;
    }
  }
}
.lc-phone-number {
  @include mixin.createCssFromStyles('& .el-input .el-input__wrapper');
  @include mixin.createCssByAttributeMaps('& .el-input__inner', variables.$common-style-maps);
}
.lc-input-icCard {
  width: 100%;
  @include mixin.createCssFromStyles('&,& .el-input .el-input__wrapper');
  @include mixin.createCssByAttributeMaps('& .el-input__inner', variables.$common-style-maps);
}
